<?php


include_once XOOPS_ROOT_PATH."/class/xoopsobject.php";



class neoobjectitemproptype  extends XoopsObject{

	
	
	function neoobjectitemproptype (){
	$this->XoopsObject();
	#$this->initVar('dohtml', XOBJ_DTYPE_INT, '1');	
	$this->initVar('id', XOBJ_DTYPE_INT, 0, false);								
	$this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false);	
	$this->initVar('action', XOBJ_DTYPE_TXTBOX, '', false);
	$this->initVar('description', XOBJ_DTYPE_TXTBOX, '', false);			
	 						
	
	}
	
}


class neoobjectitemproptypeHandler extends XoopsObjectHandler{
	#var $table='neogeocounryproptype'
    function &create($isNew = true)
    {
    }
	
	
    function &get($id)
    { 
	  $itemproptype=$this->getObjects();
         $id = intval($id);
        if ($id > 0) {
		return $itemproptype[$id];		
       }
        return false;
    }
	
	 function insert(&$item)
    {
    }


    function &getObjects()
    { 
    $itemproptype=array();
    $itemproptype[1]=array('id'=>1,'name'=>'int');
    $itemproptype[2]=array('id'=>2,'name'=>'text');
    $itemproptype[3]=array('id'=>3,'name'=>'currency'); 
    $itemproptype[4]=array('id'=>4,'name'=>'boolean'); 	
     return $itemproptype;
    }

    /**
     * Count some images
     * 
     * @param   object  $criteria   {@link CriteriaElement} 
     * @return  int
     **/
    function getCount()
    {
	return count ($this->getObjects());
     }



}

?>